package com.xiaoq.order.thirdpayinfo.tencent.service;

import com.xiaoq.order.thirdpayinfo.tencent.common.Configure;
import com.xiaoq.order.thirdpayinfo.tencent.protocol.paytransfers_protocol.TransfersOrderReqData;

public class TransferPayService extends BaseService {

	public TransferPayService() throws IllegalAccessException, InstantiationException, ClassNotFoundException {
		super(Configure.TRANSFER_API);
	}

	/**
	 * 请求支付服务
	 * 
	 * @param scanPayReqData
	 *            这个数据对象里面包含了API要求提交的各种数据字段
	 * @return API返回的数据
	 * @throws Exception
	 */
	public String request(TransfersOrderReqData transfersOrderReqData) throws Exception {

		// --------------------------------------------------------------------
		// 发送HTTPS的Post请求到API地址
		// --------------------------------------------------------------------
		String responseString = sendPost(transfersOrderReqData);

		return responseString;
	}

}
